package com.fowo.api.model.logistics.withdraw;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 物流请款 导入导出辅助模型 */
@Getter
@Setter
public class LogisticsWithdrawExcelPo {

  @NotBlank(message = "物流商不能为空")
  @Size(max = 50, message = "物流商长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*物流商")
  private String logisticsProvider;

  @Size(max = 50, message = "发货单号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "发货单号")
  private String inoviceCode;

  @Size(max = 50, message = "品名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "品名")
  private String productName;

  @Size(max = 50, message = "物流商单号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "物流商单号")
  private String logisticsProvidercode;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "状态")
  private String status;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "收货仓库")
  private String receivingWarehouseName;

  @ExcelIgnore
  @ExcelProperty(value = "收货仓库")
  private Long receivingWarehouse;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "物流方式")
  private String logisticsMode;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "费用类型")
  private String feeType;

  @NumberFormat("0.00")
  @ExcelProperty(value = "费用金额")
  private java.math.BigDecimal feeMoney;

  @NumberFormat("0.00")
  @ExcelProperty(value = "应付金额")
  private java.math.BigDecimal handleMoney;

  @NumberFormat("0.00")
  @ExcelProperty(value = "折扣金额")
  private java.math.BigDecimal discountAmount;

  @NumberFormat("0.00")
  @ExcelProperty(value = "已付金额")
  private java.math.BigDecimal actuallyPaid;

  @ExcelProperty(value = "未付金额")
  private java.math.BigDecimal unpaidMoney;

  @ExcelProperty(value = "申请中")
  private java.math.BigDecimal inApplication;

  @ExcelProperty(value = "未申请")
  private java.math.BigDecimal notApply;

  @Size(max = 50, message = "费用录入人长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "费用录入人")
  private String feeRecorderName;

  @ExcelIgnore
  @ExcelProperty(value = "费用录入人")
  private Long feeRecorder;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "录入时间")
  private java.util.Date recordTime;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remarks;
}
